package com.atguigu.docker.controller;

import cn.hutool.core.date.DateUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: atguigu
 * @create: 2024-05-30 14:33
 */
@RestController
@RequestMapping("/api")
public class IndexController {

    @GetMapping("/get")
    public String get() {
        return "atguigu:"+ DateUtil.now();
    }


    @GetMapping("/v2")
    public String v2(){
        return "v2";
    }


    @GetMapping("/v3")
    public String v3(){
        return "v3";
    }
}
